package JavaPractice;
import java.util.Scanner;

public class 闰年判断 {
    public static void main(String args[]) {
        long year = 0;
        boolean is_leapyear = false;
        Scanner reader = new Scanner(System.in);
        year = reader.nextLong();
        if ((year % 4) == 0) {
            if ((year % 100) != 0) {
                is_leapyear = true;
            }
        }
        if ((year % 400) == 0) {
            is_leapyear = true;
        }
        if (is_leapyear) {
            System.out.println("yes");
        } else {
            System.out.println("no");
        }
        reader.close();
    }
}
